package cn;
//栈
public interface IStack {
    public void clear();//栈置空
    public boolean isEmpty();//判断栈是否为空
    public int length();//求栈中元素的长度
    public Object peek();//取出栈顶元素
    public void push(Object x)throws Exception;//入栈
    public Object pop();//出栈
}
